
package com.wujilee.mqdelaytask.service;

import com.wujilee.mqdelaytask.entity.EntityDelayTask;

import java.util.Collections;
import java.util.List;

/**
 * @author liwuji
 * @date 2024/4/12
 * @desc
 **/
public interface DelayTaskService {
    boolean addDelayTask(EntityDelayTask entityDelayTask);
    boolean updateDelayTask(EntityDelayTask entityDelayTask);

    /**
     * 获取到期的任务
     * @return
     */
    Iterable<EntityDelayTask> getDelayTask();

    void saveDelayTask(EntityDelayTask entityDelayTask);
}
